home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-1294.lzh / AMOSLIST / text0027.txt < prev    next >
Encoding:
Text File  |  1995-01-03  |  1.2 KB  |  21 lines

  1. > Yes, I'm searchin a command to add space to a bank as data get bigger.
  2. > Just think a text editor where you can write from 0 to 1MB of text.
  3. > It would be stupid reserve 1MB of memory if you only want to write "hello 
  4. > everybody!". And if always a limitation.
  5. > If I could add space as your text is going bigger it would be a great thing.
  6.  
  7.     Perhaps you can use the Free (or Fast Free or Chip Free?) command
  8. to reserve a portion of the total memory availabe (so you don't get an error
  9. by allocating more than is available) and hope that they don't wont to do
  10. something else at the same time :) ... maybe you can reserve a portion
  11. of the total memory and allow them to reduce it if they want to use less.
  12. Or perhaps you can reserve one bank for every 10k and join them into a single
  13. bank at 100k (sounds like it'd get complicated though).  But maybe the best
  14. way since I don't think copying is THAT slow is this:  Reserve 10k.  When the
  15. 10k is full, reserve another bank at 20k, copy, bank swap with the old bank
  16. (so the current bank number is always the same), then erase the 10k bank.
  17. When it reackes 20k, reserve 30k etc....  Also, double check and make sure
  18. there isn't a bank expand command or something in AMOS pro... or have you
  19. already?
  20.  
  21.